package com.jt.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author CCFu
 * @version 1.0
 * @date 2022/1/18 15:34
 */
@FeignClient(name="sca-provider",contextId = "remoteProviderService",
        fallbackFactory = ProviderFallbackFactory.class)//sca-provider为服务提供者名称
public interface RemoteProviderService{
    @GetMapping("/provider/echo/{string}")//前提是远端需要有这个服务
     String echoMessage(@PathVariable("string") String string);
}
